package cn.my.controller;

import cn.my.common.Result;
import cn.my.domain.UserCrop;
import cn.my.service.UserCropService;
import com.ruoyi.common.core.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("userCrop")
public class UserCropController {

    @Autowired
    UserCropService userCropService;

    @GetMapping("userCropList")
    public Result userCropList(UserCrop userCrop){
        PageUtils.startPage();
        List<UserCrop> list = userCropService.userCropList(userCrop);
        return Result.success();
    }
}
